package com.shbt.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TReleaseBuyComment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_release_buy_comment", catalog = "default_schema")
public class TReleaseBuyComment implements java.io.Serializable {

	// Fields

	private Integer id;
	private TReleaseBuy TReleaseBuy;
	private String commentContent;
	private String photo;

	// Constructors

	/** default constructor */
	public TReleaseBuyComment() {
	}

	/** minimal constructor */
	public TReleaseBuyComment(Integer id, TReleaseBuy TReleaseBuy) {
		this.id = id;
		this.TReleaseBuy = TReleaseBuy;
	}

	/** full constructor */
	public TReleaseBuyComment(Integer id, TReleaseBuy TReleaseBuy,
			String commentContent, String photo) {
		this.id = id;
		this.TReleaseBuy = TReleaseBuy;
		this.commentContent = commentContent;
		this.photo = photo;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "t_release_buy_id", nullable = false)
	public TReleaseBuy getTReleaseBuy() {
		return this.TReleaseBuy;
	}

	public void setTReleaseBuy(TReleaseBuy TReleaseBuy) {
		this.TReleaseBuy = TReleaseBuy;
	}

	@Column(name = "comment_content", length = 65535)
	public String getCommentContent() {
		return this.commentContent;
	}

	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}

	@Column(name = "photo", length = 100)
	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

}